package com.blb.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * 课程活动
 */
@Data
@TableName("course_activity")
public class CourseActivity implements Serializable {

  @TableId(type = IdType.AUTO)
  private long id;
  private long courseId;
  private Timestamp beginTime = Timestamp.valueOf(LocalDateTime.now());
  private Timestamp endTime= Timestamp.valueOf(LocalDateTime.now());
  private long amount;
  private long stock;
  private long status;
  private long isDel;
  private String remark;
  private Timestamp createTime= Timestamp.valueOf(LocalDateTime.now());
  private Timestamp updateTime= Timestamp.valueOf(LocalDateTime.now());
}
